package com.atguigu.headline.service.impl;

import com.atguigu.headline.dao.PortalDao;
import com.atguigu.headline.pojo.NewsType;
import com.atguigu.headline.service.PortalService;
import com.atguigu.mymvc.annotation.Autowire;
import com.atguigu.mymvc.annotation.Service;

import java.util.ArrayList;
@Service
public class PortalServiceImpl implements PortalService {
    @Autowire
    PortalDao portalDao;
    @Override
    public ArrayList<NewsType> getTypes() {
       return portalDao.getTypes();
    }
}
